package com.baosight.risk.service.riwa.entity;

import com.baosight.risk.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import javax.persistence.*;

import lombok.Data;

/**
 * Table: T_RIWA_EQUITY_INVEST
 */
@Data
@ApiModel
@Table(name = "T_RIWA_EQUITY_INVEST")
public class RiwaEquityInvest extends BaseEntity {

    /**
     * 主表ID
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    IMPORT_GUID
     * Nullable:  true
     */
    @ApiModelProperty("主表ID")
    @Column(name = "MAIN_GUID")
    private String mainGuid;

    /**
     * 风险点ID
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    RISK_ID
     * Nullable:  false
     */
    @ApiModelProperty("风险点ID")
    @Column(name = "RISK_ID")
    private String riskId;

    /**
     * 投资单位名称
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    INVEST_COMP_NAME
     * Nullable:  true
     */
    @ApiModelProperty("投资单位名称")
    @Column(name = "INVEST_COMP_NAME")
    private String investCompName;

    /**
     * 币种
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    CURRENY_CODE
     * Nullable:  true
     */
    @ApiModelProperty("币种")
    @Column(name = "CURRENY_CODE")
    private String currenyCode;

    /**
     * 币种说明
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    CURRENY_NAME
     * Nullable:  true
     */
    @ApiModelProperty("币种说明")
    @Column(name = "CURRENY_NAME")
    private String currenyName;

    /**
     * 净利润（万元）
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    NET_PROFITS
     * Nullable:  true
     */
    @ApiModelProperty("净利润（万元）")
    @Column(name = "NET_PROFITS")
    private BigDecimal netProfits;

    /**
     * 净资产（万元）
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    NET_ASSETS
     * Nullable:  true
     */
    @ApiModelProperty("净资产（万元）")
    @Column(name = "NET_ASSETS")
    private BigDecimal netAssets;

    /**
     * ROE(净利润/净资产)%
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    ROE
     * Nullable:  true
     */
    @ApiModelProperty("ROE(净利润/净资产)%")
    @Column(name = "ROE")
    private BigDecimal roe;

    /**
     * 亏损面(盈利、亏损、-）
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    ROE_DESC
     * Nullable:  true
     */
    @ApiModelProperty("亏损面(盈利、亏损、-）")
    @Column(name = "ROE_DESC")
    private String roeDesc;

    /**
     * 投资收益情况
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    INVEST_CODE
     * Nullable:  true
     */
    @ApiModelProperty("投资收益情况")
    @Column(name = "INVEST_CODE")
    private String investCode;

    /**
     * 投资收益情况
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    INVEST_DESC
     * Nullable:  true
     */
    @ApiModelProperty("投资收益情况")
    @Column(name = "INVEST_DESC")
    private String investDesc;

    /**
     * 返利金额（万元）
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    REBATE
     * Nullable:  true
     */
    @ApiModelProperty("返利金额（万元）")
    @Column(name = "REBATE")
    private BigDecimal rebate;

    /**
     * 年报收集
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    ANNUAL_REPORT_CODE
     * Nullable:  true
     */
    @ApiModelProperty("年报收集")
    @Column(name = "ANNUAL_REPORT_CODE")
    private String annualReportCode;

    /**
     * 年报收集
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    ANNUAL_REPORT_NAME
     * Nullable:  true
     */
    @ApiModelProperty("年报收集")
    @Column(name = "ANNUAL_REPORT_NAME")
    private String annualReportName;

    /**
     * 最近一期重大事项
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    IMPORT_DESC
     * Nullable:  true
     */
    @ApiModelProperty("最近一期重大事项")
    @Column(name = "IMPORT_DESC")
    private String importDesc;

    /**
     * 召开时间
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    BEGIN_DATE
     * Nullable:  true
     */
    @ApiModelProperty("召开时间")
    @Column(name = "BEGIN_DATE")
    private String beginDate;

    /**
     * 申报时间
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    APPLY_DATE
     * Nullable:  true
     */
    @ApiModelProperty("申报时间")
    @Column(name = "APPLY_DATE")
    private String applyDate;

    /**
     * 申报资料
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    APPLY_MATRIAL
     * Nullable:  true
     */
    @ApiModelProperty("申报资料")
    @Column(name = "APPLY_MATRIAL")
    private String applyMatrial;

    /**
     * 是否完善
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    FINISH_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("是否完善")
    @Column(name = "FINISH_FLAG")
    private String finishFlag;

    /**
     * 是否完善
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    FINISH_FLAG_NAME
     * Nullable:  true
     */
    @ApiModelProperty("是否完善")
    @Column(name = "FINISH_FLAG_NAME")
    private String finishFlagName;

    /**
     * 排序
     * <p>
     * Table:     T_RIWA_EQUITY_INVEST
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
//    private String rowOrder;
    private Integer rowOrder;
    private static final long serialVersionUID = 1L;
}